﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Smart_Transportation.GUI.Manage_Region
{
    public partial class ManageRegionPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataConnect.Openconnect();
            dgvRegion.DataSource = DataConnect.ex("select *from Books");

        }

        protected void btnAddRegion_Click(object sender, EventArgs e)
        {
            Response.Redirect("AddRegionPage.aspx");
        }

        protected void dgvRegion_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        protected void btnLisAllRegion_Click(object sender, EventArgs e)
        {
            dgvRegion.DataBind();
        }
    }
}